package com.dogsong.liteflow.editor.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.HashMap;
import java.util.Map;

/**
 * LiteFlow SQL配置类
 *
 * @author dogsong
 * @since 2024/6/12
 */
@Configuration
@ConfigurationProperties(prefix = "liteflow")
public class LiteFlowSqlConfig {
    
    private Map<String, Object> ruleSourceExtDataMap = new HashMap<>();
    
    private String ruleSource;
    
    private boolean printExecutionLog = false;

    public Map<String, Object> getRuleSourceExtDataMap() {
        return ruleSourceExtDataMap;
    }

    public void setRuleSourceExtDataMap(Map<String, Object> ruleSourceExtDataMap) {
        this.ruleSourceExtDataMap = ruleSourceExtDataMap;
    }

    public String getRuleSource() {
        return ruleSource;
    }

    public void setRuleSource(String ruleSource) {
        this.ruleSource = ruleSource;
    }

    public boolean isPrintExecutionLog() {
        return printExecutionLog;
    }

    public void setPrintExecutionLog(boolean printExecutionLog) {
        this.printExecutionLog = printExecutionLog;
    }
}
